package com.capinfo.accumulation.service.accounting.mybits.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.capinfo.accumulation.dao. ZDPZFZZPZMBDao;
import com.capinfo.accumulation.model.accounting.mybist.ZDPZFZZPZMB;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.ZDPZFZZPZMBServiceI;
@Service("zDPZFZZPZMBService")
public class  ZDPZFZZPZMBServiceImpl implements  ZDPZFZZPZMBServiceI {
	
	@Autowired
	 ZDPZFZZPZMBDao  zDPZFZZPZMBDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.zDPZFZZPZMBDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ZDPZFZZPZMB record) {
		return this.zDPZFZZPZMBDao.insertSelective(record);
	}

	@Override
	public ZDPZFZZPZMB selectByPrimaryKey(String id) {
		return this.zDPZFZZPZMBDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ZDPZFZZPZMB record) {
		return this.zDPZFZZPZMBDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<ZDPZFZZPZMB> retList = this.zDPZFZZPZMBDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

	@Override
	public int updateByFLXH(String FLXH,String ZDPZMBID) {
		return this.zDPZFZZPZMBDao.updateByFLXH(FLXH,ZDPZMBID);

	}
	@Override
	public int deleteByPrimaryKey1(String id,String ZDPZMBID) {
		return this.zDPZFZZPZMBDao.deleteByPrimaryKey1(id,ZDPZMBID);
	}


}
